<script setup>
import { defineProps } from 'vue'

const app = defineProps({
    checked: {
        type: Boolean,
        default: false
    },
    value: {
        type: Number,
        default: 1
    }
})
</script>

<template>
    <div>
        <van-cell-group>
            <vanCell>
                <!-- <div class="biaodan"> -->
                <div class="aa">
                    <van-checkbox v-model=app.checked shape="square" class="bb"></van-checkbox>
                    <img src="https://tse2-mm.cn.bing.net/th/id/OIP-C.YKoZzgmubNBxQ8j-mmoTKAHaEK?pid=ImgDet&rs=1" alt="">
                </div>
                <div class="cc">
                    <div class="xinxian">新鲜水果清新柠檬</div>
                    <div class="keshu">克数:500克</div>
                    <!-- <b>克数:500克</b> -->
                </div>
                <van-icon name="delete" class="shanchu" />
                <div class="jisuan">
                    <span class="jiage">￥16.00</span>
                    <van-stepper v-model=app.value />
                </div>
            </vanCell>
        </van-cell-group>
    </div>
</template>

<style lang="scss" scoped>
.jisuan {
    position: relative;
    top: 53%;
    display: flex;
    justify-content: space-between
}

.jiage {
    position: relative;
    left: 20%;
    color: red;
}

.shanchu {
    font-size: 19px;
}

.keshu {
    color: #999999;
    display: flex;
    width: 16%;
}

// :deep(span) {
//     text-align: center;
// }

.cc {
    display: flex;
    align-items: center;
    position: absolute;
    text-align: center;
    // justify-content: space-around;
    width: 100%;
    flex-direction: column;
    align-items: center;

    .xinxian {
        color: #19110B;
        width: 254px;
        height: 31px;
    }

    i {
        position: absolute;
        right: 0;
    }
}

.aa {

    float: left;
    width: 200px;
    position: relative;

    .bb {
        position: absolute;
        top: 50%;
    }

    :deep(img) {
        width: 160px;
        height: 160px;
    }
}

.van-checkbox {
    width: 38px;
    text-align: center;
    display: block;
}
</style>